﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UsersMaster.master" AutoEventWireup="true"
    CodeBehind="SearchClient.aspx.cs" Inherits="SMS.Client.SearchClient" %>

<asp:Content ID="Content1" ContentPlaceHolderID="UserMainContent" runat="server">
    <div id="search" class="boxed">
        <h2 class="title" dir="rtl">
            <img src="../App_Themes/Theme/images/Search 2.png" class="img" />
            بحث</h2>
        <div dir="rtl" class="content">
            <table>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label1" Text="الإسم:" runat="server" />
                    </td>
                    <td align="right">
                        <asp:TextBox ID="txtName" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label2" Text="الحالة:" runat="server" />
                    </td>
                    <td align="right">
                        <asp:RadioButtonList ID="rblStatus" RepeatDirection="Horizontal" runat="server">
                            <asp:ListItem Selected="True" Text="الكل" />
                            <asp:ListItem Text="دائن" />
                            <asp:ListItem Text="مدين" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr align="left">
                    <td colspan="2" align="left">
                        <asp:Button CssClass="checkoutbutton" ID="btnSearch" Text="بحث" runat="server" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <table width="100%">
                <tr>
                    <td colspan="2" align="center">
                        <asp:GridView ID="GridView1" DataKeyNames="ID" HeaderStyle-Wrap="true" CssClass="Grid"
                            PageSize="10" AllowPaging="true" PagerStyle-CssClass="Pager" Width="80%" runat="server"
                            AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                            OnRowDeleting="GridView1_RowDeleting" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound"
                            OnPageIndexChanging="GridView1_PageIndexChanging" OnSorting="GridView1_Sorting">
                            <PagerStyle HorizontalAlign="Center" />
                            <Columns>
                                <asp:BoundField DataField="Name" HeaderText="الإسم" />
                                <asp:BoundField DataField="Mobile" HeaderText="الموبيل" />
                                <asp:BoundField DataField="DiscountPercentage" HeaderText="نسبة التخفيض" HeaderStyle-Wrap="false" />
                                <asp:BoundField HeaderText="دائن" />
                                <asp:BoundField HeaderText="مدين" />
                                <asp:TemplateField HeaderText="إظهار التعاملات">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="Button1" Text="التعاملات" CommandArgument="<%#((GridViewRow)Container).RowIndex %>"
                                            CommandName="ViewTrans" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:CommandField ShowSelectButton="true" HeaderText="تحديث / المزيد" SelectText="تحديث / المزيد" />
                                <asp:TemplateField HeaderText="مسح" HeaderStyle-Width="20px">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ImageButton1" ImageUrl="../App_Themes/Theme/images/Error.png"
                                            Width="15px" Height="15px" CommandName="Delete" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                </asp:TemplateField>
                            </Columns>
                            <EmptyDataTemplate>
                                لا يوجد نتائج
                            </EmptyDataTemplate>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
